<%
	java.io.File exportfile = (java.io.File)request.getAttribute("outputFile");

    response.setContentType( "application/unknown; charset=iso8859_1" );
    response.addHeader( "content-disposition", "attachment;filename=" + exportfile.getName());
    java.io.InputStream file = new java.io.FileInputStream(exportfile);
    java.io.OutputStream output = response.getOutputStream();

    byte[] buffer = new byte[1024];
    int length = 0;
    for (; (length = file.read(buffer, 0, buffer.length)) > -1;)
    {
        output.write(buffer, 0, length);
    }
    
    file.close();
    //file.delete();
%>